﻿#ifndef SERVICECONTROLTHREAD_H
#define SERVICECONTROLTHREAD_H

#include <QThread>
#include <deviceoperator.h>
#include <progressmanage.h>

class ServiceControlThread : public QThread
{
    Q_OBJECT
public:
    explicit ServiceControlThread(QObject *parent = nullptr);
    ~ServiceControlThread();
signals:
    void signal_serviceState(int state,QString message);
public slots:
    void slot_installService();
    void slot_uninstallService();
    void slot_startService();
    void slot_stopService();
    void slot_getServiceState();
private:
    DeviceOperator deviceOperator;
    ProgressManage progressManage;
protected:
    void run() override;
};

#endif // SERVICECONTROLTHREAD_H
